/*
 * led.c
 *
 *  Created on: Dec 30, 2023
 *      Author: tangle
 */
#include "driver_led.h"


/* 开启LED */
void led_on(LED_Handle_s *LEDHandle)
{
	LEDHandle->led_on();
}

/* 关闭LED */
void led_off(LED_Handle_s *LEDHandle)
{
	LEDHandle->led_off();
}

/* 翻转关闭LED */
void led_flip(LED_Handle_s *LEDHandle)
{
	LEDHandle->led_flip();
}

/* LED注册回调函数 */
void LED_Callback_Register(LED_Handle_s *LEDHandle,LEDON_CB ledon_cb,LEDOFF_CB ledoff_cb,LEDFLIP_CB ledflip_cb)
{
	LEDHandle->led_on = ledon_cb;
	LEDHandle->led_off = ledoff_cb;
	LEDHandle->led_flip = ledflip_cb;
}


